package com.example.video.repository;

import com.example.video.domain.Information;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface InformationRepository extends JpaRepository<Information, Long> {
    @Query("select I from Information I where I.type=3 order by I.publishDate desc")
    Page<Information> queryUpdate(Pageable pageable);
}
